package productmanagementclient.views;

import java.io.Serializable;
import java.util.Date;

public class Product implements Serializable {
	private static final long serialVersionUID = -2532718595121925389L;
	private long productId;
	private String productName;
	private Date importDate = new Date();
	private double importCost;
	private double exportCost;
	private double shippingCost = 0;
	private String productType;
	private int remainingItem;
	private String note = "";

	public Product(long id, String productName, String productType,
			int remainingItem, double exportCost) {
		this.productId = id;
		this.productName = productName;
		this.productType = productType;
		this.remainingItem = remainingItem;
		this.exportCost = exportCost;
		this.importCost = exportCost - 5000;
	}

	public long getProductId() {
		return productId;
	}

	public void setProductId(long productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public double getImportCost() {
		return importCost;
	}

	public void setImportCost(double importCost) {
		this.importCost = importCost;
	}

	public double getExportCost() {
		return exportCost;
	}

	public void setExportCost(double exportCost) {
		this.exportCost = exportCost;
	}

	public double getShippingCost() {
		return shippingCost;
	}

	public void setShippingCost(double shippingCost) {
		this.shippingCost = shippingCost;
	}

	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public int getRemainingItem() {
		return remainingItem;
	}

	public void setRemainingItem(int remainingItem) {
		this.remainingItem = remainingItem;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public Date getImportDate() {
		return importDate;
	}

	public void setImportDate(Date importDate) {
		this.importDate = importDate;
	}

	@Override
	public String toString() {
		return this.getProductName();
	}
}
